<template>
    <div>
        <button @click="submitForm()">
            退出
        </button>
    </div>
</template>
<script lang="ts" setup>
import {useRouter} from 'vue-router'
import router from '@/router'

const submitForm = () => {
    localStorage.removeItem("token");
    router.push('/login')


}
</script>